<?php
/**
 * 客诉图片模型
 * (model)
 */
namespace App\Models\Quality;

use Illuminate\Database\Eloquent\Model;
class QComplaintImage extends Model
{
    protected $table = 'quality_complaint_image';

    protected $guarded = [];

    public $timestamps = false;

    protected $casts = [
        'pics' => 'array',
    ];

    //当前模型(QComplaintImage)反向关联默认外键是：方法名称_id    对应父级模型(QComplaint)的id
    public function complaint(){
        return $this->belongsTo(QComplaint::class);
    }
}
